package com.exception.demo02;

//自定义异常
public class MyException extends Exception{
        private int detail1;
        public MyException(int a){
            this.detail1 = a;
        }

    @Override
    public String toString() {
        return "MyException{" +
                "detail1=" + detail1 +
                '}';
    }
}
